package org.swift.mashup.engine.model;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Map;

@SuppressWarnings("rawtypes")
public class ActivityResultGroup extends ActivityResultComponent {

	private final Collection<ActivityResultComponent> activityResultComponents = new ArrayList<ActivityResultComponent>();

	@Override
	public void add(ActivityResultComponent activityResult) {
		activityResultComponents.add(activityResult);
	}

	@Override
	public void updateOutputMap(final Map<String, Collection> results,
			final String defaultType) {
		for (ActivityResultComponent resultComponent : activityResultComponents) {
			resultComponent.updateOutputMap(results, defaultType);
		}
	}

}
